package com.jchy.renderit.core;
 
public class Light
{
	public Point location;
    public java.awt.Color color;
    
    public Light()
    {
        location=new Point(0,0,0);
        color=new java.awt.Color(0,0,0);
    }
    
    public void setLocation(double inx, double iny, double inz)
    {
        location.setPosition(inx,iny,inz);
    }    

    public void setColor(int inred, int ingreen, int inblue)
    {
        color=new java.awt.Color(inred,ingreen,inblue);
    }

    public double getX()
    {
        return location.x;
    }

    public double getY()
    {
        return location.y;
    }

    public double getZ()
    {
        return location.z;
    }

    public int getRed()
    {
        return color.getRed();
    }

    public int getGreen()
    {
        return color.getGreen();
    }

    public int getBlue()
    {
        return color.getBlue();
    }

    public String toString()
    {
        String result = new String();
        result="Location: " + location + 
               "\nColor: (" + color.getRed() + ", " +
                              color.getGreen() + ", " +
                              color.getBlue() + ")";
        return result;
    }
}
